import { FormType } from './enum'

export type FormItemWidget = {
  type: FormType
  label: string
  icon: string
}

export type LayoutConfig = {
  x: number
  y: number
  column: number
}

export type FormConfig = {
  variant: 'outlined' | 'filled' | 'borderless' // 表单样式
  layout: 'horizontal' | 'vertical' | 'inline' // 表单布局
  size: 'small' | 'middle' | 'large' // 表单大小
  labelAlign: 'left' | 'right' // 标签对齐
  labelCol: number | undefined // 标签宽度
  labelWrap: boolean // 标签换行
}

export type ObjType = Record<string, any>
